package com.jdym.back.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdym.back.entity.PopularLoan;
import com.jdym.back.mapper.PopularLoanMapper;
import com.jdym.back.service.PopularLoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PopularLoanServiceImpl extends ServiceImpl<PopularLoanMapper, PopularLoan> implements PopularLoanService {
   @Autowired
   PopularLoanMapper popularLoanMapper;
    @Override
    public List<PopularLoan> getAllPopularLoan() {
      return  popularLoanMapper.getAllPopularLoan();
    }

    @Override
    public PopularLoan getPopularLoanById(int plId) {
        return popularLoanMapper.getPopularLoanById(plId);
    }

    @Override
    public PopularLoan getPLById(int plid) {
        return popularLoanMapper.getPLById(plid);
    }
}
